package com.ruoyi.project.rest.order.mapper;

import java.util.List;
import com.ruoyi.project.rest.order.domain.RestOrder;
import com.ruoyi.project.rest.statistics.domain.RestStatisticsData;
import org.apache.ibatis.annotations.Param;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2022-03-28
 */
public interface RestOrderMapper 
{
    /**
     * 查询订单
     * 
     * @param orderNo 订单主键
     * @return 订单
     */
    public RestOrder selectRestOrderByOrderNo(String orderNo);

    /**
     * 查询订单列表
     * 
     * @param restOrder 订单
     * @return 订单集合
     */
    public List<RestOrder> selectRestOrderList(RestOrder restOrder);

    /**
     * 新增订单
     * 
     * @param restOrder 订单
     * @return 结果
     */
    public int insertRestOrder(RestOrder restOrder);

    /**
     * 修改订单
     * 
     * @param restOrder 订单
     * @return 结果
     */
    public int updateRestOrder(RestOrder restOrder);

    /**
     * 删除订单
     * 
     * @param orderNo 订单主键
     * @return 结果
     */
    public int deleteRestOrderByOrderNo(String orderNo);

    /**
     * 批量删除订单
     * 
     * @param orderNos 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRestOrderByOrderNos(String[] orderNos);

    List<RestStatisticsData> selectStatisticsQuery(@Param("startTime") String startTime, @Param("endTime") String endTime);
}
